package org.example.designPattern.creation.singleton;


/**
* 单例模式：核心概念，一个类全局只会产生一个对象
* */
public class SingletonDemo1 {
    private final static SingletonDemo1 singletonDemo1 = new SingletonDemo1();

    private SingletonDemo1(){

    }

    private static SingletonDemo1 getInstance(){
        return singletonDemo1;
    }
}
